package org.robotlegs.demos.lazyfsm.views.mediators
{
	import mx.controls.Alert;
	
	import org.robotlegs.core.IMediator;
	import org.robotlegs.mvcs.Mediator;
	import org.robotlegs.demos.lazyfsm.events.ApplicationEvent;
	import org.robotlegs.demos.lazyfsm.views.components.MainView;
	import org.robotlegs.demos.lazyfsm.views.components.TheBrain;
	
	public class MainViewMediator extends Mediator
	{
		[Inject]
		public var view:MainView;
		
		public function MainViewMediator()
		{
			super();
		}
		
		override public function onRegister():void
		{
			//mediatorFactory.mapMediator(TheBrain,TheBrainMediator);
			dispatch(new ApplicationEvent(ApplicationEvent.LOGG_MESSAGE, "MainViewMediator registered"));
		}
	}
}